package com.zjuh.taofood.biz.ao;

import java.util.List;
import java.util.Map;

import wint.help.biz.result.Result;
import wint.mvc.form.fileupload.UploadFile;

import com.zjuh.taofood.biz.dao.query.TopicItemQuery;
import com.zjuh.taofood.biz.dao.query.TopicQuery;
import com.zjuh.taofood.biz.domain.TopicDO;

public interface TopicAO {
	
	Result viewTopicList(TopicQuery topicQuery);
	
	Result viewTopicListForAdmin(TopicQuery topicQuery);
	
	Result viewTopicDetailForAdmin(long id, int page);
	
	Result viewTopicModifyForAdmin(long id);
	
	Result modifyTopicForAdmin(TopicDO topic);
	
	Result createTopic(TopicDO topic, Map<String, UploadFile> uploadFiles);
	
	Result deleteTopicDetailForAdmin(long id);
	
	Result viewTopicDetail(long topicId, int itemsPage);
	
	Result searchTopicItems(TopicItemQuery topicItemQuery);
	
	Result addItemToTopic(long topicId, long itemId);
	
	Result addItemsToTopic(long topicId, List<Long> itemIds);
	
	Result removeItemFromTopic(long id);
	
	Result modifyTopicImage(long topicId, Map<String, UploadFile> uploadFiles);
	
	Result viewIndex();
	
}
